package com.github.murzagalin.evaluator.token

import com.github.murzagalin.evaluator.function.Function

data class FunctionCall(
    val argsCount: Int,
    val function: Function
) : Token {

    operator fun invoke(args: List<Any>) = function(*args.toTypedArray())

    data object Delimiter: Token
}